Skip to content

fix: fail the Matrix notification on a wrong homeserver or a failed request - #10

Merged
golsch merged 2 commits into
mainfrom
matrix-notify-status
Dec 2, 2026
Merged

golsch merged 2 commits into
mainfrom
matrix-notify-status

Conversation

@golsch

@golsch golsch commented Dec 2, 2026

Copy link
Copy Markdown
Member

The snapshot refresh sent no message although "Notify Matrix" was green: MATRIX_HOMESERVER held the server name uni-goettingen.de instead of the base URL, the homeserver answered 301 and curl --fail-with-body took that as success.

matrix-notify now requires an https URL without whitespace or control characters and fails on any answer but 2xx, with the status and the answer in the error. The release workflows keep continue-on-error on the step. The README explains where the base URL comes from (/.well-known/matrix/client).

@golsch
golsch merged commit 534d7ee into main Dec 2, 2026
2 checks passed
@golsch
golsch deleted the matrix-notify-status branch December 2, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant